package insight.google;

import insight.google.game.era.bo.GameUser;
import insight.google.game.era.bo.GameUserTest;

import java.util.ArrayList;
import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import org.directwebremoting.annotations.DataTransferObject;
import org.directwebremoting.annotations.RemoteProperty;

import com.google.appengine.api.datastore.Key;


@DataTransferObject
@PersistenceCapable
public class GameRoomTest {

	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@PrimaryKey
	private Key roomId;

	@RemoteProperty
	@Persistent
	private String roomName;

	@Persistent(mappedBy = "currentRoom", defaultFetchGroup = "true")
	private List<GameUserTest> userList = new ArrayList<GameUserTest>();
	
	
}
